CachedSharePointFile Constructor (SharePointCacheSettings, SharePointFileLocation)

Create a cached copy of a file in SharePoint.

Parent Type: CachedSharePointFile

Namespace: Microsoft.LearningComponents.SharePoint

Assembly: Microsoft.LearningComponents.SharePoint.dll

Syntax
C#

public CachedSharePointFile (
SharePointCacheSettings cacheSettings,
SharePointFileLocation location

)

Parameters

cacheSettings

The settings that determine how the file is cached.

location

The location of the file in SharePoint.

Remarks

This method does only verifies that the settings.WindowsIdentity has access to the settings.CachePath. It does not verify that the file exists in SharePoint. The contents of the package are read only once when they are first needed.